package com.example.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface BookDao extends BaseMapper<Book> {
    /**
     * 查询一个book
     * @param id
     * @return Book
     */
    @Select("select * from tbl_book where id = #{id}")
    Book getById(int id);
}
